package com.ophiux.cs.application.consultBase.dto;

import com.ophiux.cs.application.core.RequestDTO;
import com.ophiux.utils.common.DateUtil;
import com.ophiux.utils.common.StringUtil;

import java.util.Date;

public class UpdateHospitalRequest extends RequestDTO {

    /**
     *医院ID
     */
    private String HOSPITAL_ID;

    /**
     *医院名称  25字内
     */
    private String HOSPITAL_NAME;

    /**
     *医院地址
     */
    private String ADDRESS;

    /**
     *医院描述 250字内
     */
    private String HOSPITAL_DESC;

    /**
     *医院标签  50字内，多个标签之间用“;”隔开
     */
    private String HOSPITAL_LABLES;

    /**
     *省份、直辖市 25字内
     */
    private String PROVINCE;

    /**
     *市  25字内
     */
    private String CITY;

    /**
     *区/县  25字内
     */
    private String AREA;

    /**
     *状态 1:有效  0:失效  默认1
     */
    private String STATE;

    /**
     *
     */
    private String SORT_ID;

    /**
     *最近修改时间  格式：yyyy-mm-dd 24hh:mm:ss
     */
    private String RECENT_TIME= DateUtil.getStrDate(new Date(), DateUtil.DateFormat.YYYY_MM_DD_HH_mm_ss);

    /**
     *医院等级名称
     */
    private String LEVEL_NAME;

    /**
     *等级  数字
     */
    private String LEVEL;

    /**
     *是否认证  0：未认证  1：已认证
     */
    private String IS_OAUTH;

    public String getHOSPITAL_ID() {
        return HOSPITAL_ID;
    }

    public void setHOSPITAL_ID(String HOSPITAL_ID) {
        this.HOSPITAL_ID = HOSPITAL_ID;
    }

    public String getHOSPITAL_NAME() {
        return HOSPITAL_NAME;
    }

    public void setHOSPITAL_NAME(String HOSPITAL_NAME) {
        this.HOSPITAL_NAME = HOSPITAL_NAME;
    }

    public String getADDRESS() {
        return ADDRESS;
    }

    public void setADDRESS(String ADDRESS) {
        this.ADDRESS = ADDRESS;
    }

    public String getHOSPITAL_DESC() {
        return HOSPITAL_DESC;
    }

    public void setHOSPITAL_DESC(String HOSPITAL_DESC) {
        this.HOSPITAL_DESC = HOSPITAL_DESC;
    }

    public String getHOSPITAL_LABLES() {
        return HOSPITAL_LABLES;
    }

    public void setHOSPITAL_LABLES(String HOSPITAL_LABLES) {
        this.HOSPITAL_LABLES = HOSPITAL_LABLES;
    }

    public String getPROVINCE() {
        return PROVINCE;
    }

    public void setPROVINCE(String PROVINCE) {
        this.PROVINCE = PROVINCE;
    }

    public String getCITY() {
        return CITY;
    }

    public void setCITY(String CITY) {
        this.CITY = CITY;
    }

    public String getAREA() {
        return AREA;
    }

    public void setAREA(String AREA) {
        this.AREA = AREA;
    }

    public String getSTATE() {
        return STATE;
    }

    public void setSTATE(String STATE) {
        this.STATE = STATE;
    }

    public String getSORT_ID() {
        return SORT_ID;
    }

    public void setSORT_ID(String SORT_ID) {
        this.SORT_ID = SORT_ID;
    }

    public String getRECENT_TIME() {
        return RECENT_TIME;
    }

    public void setRECENT_TIME(String RECENT_TIME) {
        this.RECENT_TIME = RECENT_TIME;
    }

    public String getLEVEL_NAME() {
        return LEVEL_NAME;
    }

    public void setLEVEL_NAME(String LEVEL_NAME) {
        this.LEVEL_NAME = LEVEL_NAME;
    }

    public String getLEVEL() {
        return LEVEL;
    }

    public void setLEVEL(String LEVEL) {
        this.LEVEL = LEVEL;
    }

    public String getIS_OAUTH() {
        return IS_OAUTH;
    }

    public void setIS_OAUTH(String IS_OAUTH) {
        this.IS_OAUTH = IS_OAUTH;
    }

    @Override
    public boolean isParamValid() {
       if(StringUtil.isEmpty(this.HOSPITAL_NAME)){
           return false;
       }
       if(StringUtil.isEmpty(this.HOSPITAL_ID)){
            return false;
        }
       return true;
    }
}
